package 线程;

public class Mythread_demo {
    public static void main(String[] args) {
        Mythread edc = new Mythread();
        Mythread EDC = new Mythread();
        edc.setName("线程01");
        EDC.setName("线程02");
        edc.start();
        EDC.start();
//runnable实现
        MyRunnable s = new MyRunnable();
        Thread s2 = new Thread(s,"线程04");
        Thread s1 = new Thread(s,"线程03");

        s1.start();
        s2.start();










    }
}
